package com.harvey.metrics.metric;

import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;

/**
 * @author harvey
 * @Description
 * @date 2020-04-08 09:21
 * @since
 */

public class BaseExample {

    /**
     * 耗时处理
     */
    public static void randomSleep() {

        try {
            TimeUnit.SECONDS.sleep(ThreadLocalRandom.current().nextInt(10));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
